<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019\5\23 0023
  Time: 11:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="css/contact_card.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="right_card">
    <div id="contact_area" class="contact_area">
    </div>
</div>
<script>

    function getContactInfo() {
        $.ajax({
                url: address_head + "/api/GetContactInfo",
                async: true,
                type: "POST",
                // 成功后开启模态框
                success: function (data) {
                    console.log(data);
                    for (i in data) {// data.data指的是数组，数组里是对象，i为数组的索引
                        console.log(data[i]);
                        $html = $("<p>最专业的毕业设计社区</p> <p>定制/售后需求请联系 QQ: <strong>" + data[i].qqNumber + "</strong></p> <p>微信: <strong>" + data[i].wechatNumber + "</strong>" +
                            "&nbsp&nbsp&nbsp 微信二维码如下：</p><img src='" + data[i].wechatQrcodePath + "'/><p>微信搜索小程序: <strong>" + data[i].miniProgramName + "</strong>" +
                            "&nbsp&nbsp&nbsp 微信小程序二维码如下：</p><img src='" + data[i].miniProgramQrcode + "'/>");
                        $("#contact_area").append($html);
                    }
                },
                error:
                    function () {
                        alert("请求失败");
                    },
                dataType: "json"
            }
        )
        ;
    }

</script>
</body>
</html>
